<?php

namespace CarApi\Controller;
use Think\Controller;
//use Common\RestController;
use Common\CommonCarController;
use Common\Model\UserHospitalModel;

class HospitalController extends CommonCarController {


	/**
	 * 获取医院对应科室的环信账号id列表
	 */
	public function getHuanxinId(){
		$userHospitalModel = new UserHospitalModel;
		//$res = $userHospitalModel->getHospitalHuanxinId(I('hospital_id'),I('keshi_id'));
		$res = $userHospitalModel->getHospitalHuanxinIdByKeshiRelationId(I('hospital_keshi_relation_id'));
		$this->ajaxReturn(['status'=>1,'data'=>['list'=>$res]]);
	}
    
}